Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bind collector: Adding support for new some v3 XML bind9 stats and JSON v1 #562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thardie wants to merge 1 commit into python-diamond:master
base: master
Choose a base branch
Loading
from thardie:bind9

Conversation

@thardie
Copy link

@thardie thardie commented Dec 15, 2016

Bind 9.11 has removed the old XML (v2) interface. This adds some support for key statistics under /server section of new v3 XML and v1 JSON interface.

Querying the root of the XML interface can cause bind to stop answering queries for several hundred milliseconds. Querying /server XML only 4-5ms, and /server for JSON 1-2ms.

'publish_view_bind': "",
'publish_view_meta': "",
'data_format': "Bind stats version:\n" +
" - xml_v2 (Original bind stats version from 9.5)\n" +
Copy link
Member

@shortdudey123 shortdudey123 Dec 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should pick xml or xml_v2 and make sure its consistent throughout

Copy link
Member

@shortdudey123 shortdudey123 Dec 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this was corrected, thanks!

Copy link
Member

Tests and doc need to be updated as well

Copy link
Member

pep8 errors need to be addressed as well

Copy link
Author

thardie commented Dec 15, 2016

Ooops. Still need to do tests and docs.

Copy link

Coverage Status

Coverage decreased (-0.8%) to 58.937% when pulling 7123829 on thardie:bind9 into f4a523f on python-diamond:master.

Copy link

Coverage Status

Coverage remained the same at 59.729% when pulling f946865 on thardie:bind9 into f4a523f on python-diamond:master.

Copy link
Author

thardie commented Dec 15, 2016

I don't have a python 2.6 environment to test this in. What's your stance on this feature not working in python 2.6?

Copy link

Coverage Status

Coverage remained the same at 59.729% when pulling e445af8 on thardie:bind9 into f4a523f on python-diamond:master.

Copy link
Member

2.6 is still supported by the project technically, but i will let others speak to that point

- zonemgmt (Zone management requests/responses)<br>
- sockets (Socket statistics)<br>
- memory (Global memory usage)<br>
| list
Copy link
Member

@shortdudey123 shortdudey123 Dec 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mode change?
100644 → 100755

| list
publish_view_bind | False | | bool
publish_view_meta | False | | bool
data_format | xml_v2 | Bind stats version:<br>
Copy link
Member

@shortdudey123 shortdudey123 Dec 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The table gets messed up, not sure whats the best way to handle it though

'publish_view_bind': False,
'publish_view_meta': False,
'data_format': 'xml_v2',
'derivative': True,
Copy link
Member

@shortdudey123 shortdudey123 Dec 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you have derivative in a separate PR

Copy link

Coverage Status

Coverage remained the same at 59.729% when pulling 32ecfd2 on thardie:bind9 into f4a523f on python-diamond:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shortdudey123 shortdudey123 shortdudey123 left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /